<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link href="css/footer.css" rel="stylesheet">
    <!-- 引入 Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
            /* 背景和文字效果 */
        body {
            background: url('./img/timg2.png');
            background-size: cover;
            color: #fff;
            font-family: 'San Francisco', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
        }

        /* 标题样式 */
        h1.text-center.mb-4 {
            color: #bbbbbb;
            font-size: 36px;
            font-weight: bold;
            letter-spacing: 2px;
        }

        /* 卡片样式 */
        .card {
            border: none;
            border-radius: 20px;
            box-shadow: 0 5px 40px rgba(0, 0, 0, 0.1); /* 深色阴影，增加苹果风格的立体感 */
            transition: all 0.3s ease-in-out;
            background-color: rgba(0, 0, 0, 0.6); /* 半透明深色卡片 */
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); /* 悬浮时增加阴影 */
        }

        .card-body {
            padding: 40px;
            background-color: rgba(255, 255, 255, 0.1); /* 浅色背景，增加与卡片背景的对比 */
            border-radius: 20px;
        }

        /* 输入框样式 */
        .form-control {
            border-radius: 12px;
            padding: 15px;
            border: 1px solid #474646;
            background-color: rgba(255, 255, 255, 0.2); /* 半透明输入框背景 */
            color: #fff;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            border-color: #66afe9;
            box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
            background-color: rgba(255, 255, 255, 0.4);
        }

        /* 标签样式 */
        .form-label {
            font-weight: bold;
            font-size: 16px;
            color: #bbb;
        }
        .form-check-label{
            color: #bbbbbb;
            font-weight: bold;
            font-size: 14px;
            margin-bottom: auto;
        }

        /* 按钮样式 */
        .btn-primary {
            background: linear-gradient(to right, rgba(99, 65, 255, 0.89), #2575fc);
            border: none;
            border-radius: 30px;
            padding: 12px 30px;
            font-size: 16px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            transition: background 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease-in-out;
        }

        .btn-primary:hover {
            background: linear-gradient(to right, #2575fc, rgba(99, 65, 255, 0.89));
            transform: translateY(-2px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }

        /* 按钮点击效果 */
        .btn-primary:active {
            transform: translateY(2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

            /* 链接样式 */
            .text-decoration-none {
                font-weight: bold;
                background-image: linear-gradient(90deg, rgba(99, 65, 255, 0.89), rgba(255, 99, 255, 0.89)); /* 渐变效果 */
                background-size: 200% auto;
                color: transparent; /* 文字颜色透明，显示渐变效果 */
                background-clip: text; /* 使渐变应用于文字 */
                transition: background-position 0.3s ease, transform 0.3s ease;
            }

            .text-decoration-none:hover {
                background-position: right center; /* 鼠标悬停时渐变方向改变 */
                transform: translateY(-3px);
            }


            /* 页脚 */
        footer {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
            color: #bbb;
        }

        footer a {
            color: #bbb;
            text-decoration: none;
        }

        footer a:hover {
            color: #fff;
        }
    </style>


</head>
<body>
<div class="container">
    <div class="row justify-content-center align-items-center vh-100">
        <div class="col-md-4">
            <div class="card shadow">
                <div class="card-body">
                    <h1 class="text-center mb-4">LOGIN
                    </h1>
                    <form>
                        <div class="mb-3">
                            <label for="username" class="form-label">用户名</label>
                            <input type="text" class="form-control" id="username" placeholder="请输入用户名" required>
                        </div>
                        <div class="mb-3">
                            <label for="password" class="form-label">密码</label>
                            <input type="password" class="form-control" id="password" placeholder="请输入密码" required>
                        </div>
                        <div class="mb-3 form-check">
                            <input type="checkbox" class="form-check-input" id="remember">
                            <label class="form-check-label" for="remember">记住我</label>
                        </div>
                        <button type="button" id="login-button" class="btn btn-primary w-100" onclick="goselect()">登录</button>
                    </form>
                    <div class="mt-3 text-center">
                        <a href="register.html" class="text-decoration-none">还没有账号? 去注册</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<footer>
    Copyleft © 2024 uu. All rights reversed. 😉
</footer>

<!-- 引入 Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>

<script>
    function goselect(){
        window.location.href = "select.html";
    }
</script>

</body>
</html>
